
#pragma once

#include "BitmapEx.h"
// CImageCtrl

class CImageCtrl : public CStatic
{
	DECLARE_DYNAMIC(CImageCtrl)
private:
	CBitmapEx m_bmpImage;

public:
	CImageCtrl();
	virtual ~CImageCtrl();

	void SetBitmap(LPCTSTR lpszResourceName);
	inline const CSize& GetSize() const{
		return m_bmpImage.GetSize();
	}

protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnPaint();
};


